package vip.ifmm.lehouse.common.enums.status;

import vip.ifmm.lehouse.common.enums.Statable;

/**
 * 发送邮件服务响应状态码
 *
 * @author Fish
 * <p>Email: fishinlove@163.com</p>
 * <p>created by 2019/06/17 22:00:09</p>
 */
public enum EmailSenderStatus implements Statable {

    SUCCESS(Statable.SUCCESS_CODE, "邮件发送成功！"),
    WAITING_TO_SEND_EMAIL(Statable.SUCCESS_CODE, "等待发送邮件！"),
    EMAIL_SENT_FAILED(-100, "邮件发送失败！");

    private int code;
    private String msg;

    EmailSenderStatus(int code, String msg) {
        this.code = code;
        this.msg = msg;
    }

    @Override
    public int getCode() {
        return code;
    }

    @Override
    public String getMsg() {
        return msg;
    }
}
